package net.lab1024.sa.admin.module.business.supercomputer.datatask.domain.form;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.swagger.v3.oas.annotations.media.Schema;
import java.time.LocalDateTime;
import lombok.Data;
import net.lab1024.sa.base.common.json.deserializer.DictValueVoDeserializer;

/**
 * 任务配置 新建表单
 *
 * @Author KeissCake
 * @Date 2024-09-26 21:17:52
 * @Copyright 暂无
 */

@Data
public class DatataskAddForm {

    @Schema(description = "自增主键")
    private Integer taskId;

    @Schema(description = "数据源表外键")
    private Integer dataSourceId;

    @Schema(description = "目的地址")
    private String transportAddress;

    @Schema(description = "对任务进行说明")
    private String taskInfo;

    @Schema(description = "触发时间, 默认24h触发单位为秒")
    private String triggerTime;

    @Schema(description = "触发类型, 默认间隔触发 conn conn式 fixed_delay 固定间隔")
    @JsonDeserialize(using = DictValueVoDeserializer.class)
    private String triggerType;

    @Schema(description = "禁用标识 0禁用 1开启")
    private Integer enabledFlag;

    @Schema(description = "更新人")
    private String updateUser;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    @Schema(description = "创建人")
    private String createUser;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

}